package com.xuecheng.learning.service;

import com.xuecheng.commons.model.dto.LearningProgressDto;
import com.xuecheng.commons.model.dto.RecordDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.learning.domain.CourseRecord;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 选课记录 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-08-08
 */
public interface CourseRecordService extends IService<CourseRecord> {

    // 查询选课记录
    ResponseResult myCourseRec(Long coursePubId);

    // （支付成功了）保存或更新选课记录
    ResponseResult saveRecord(RecordDto dto);

    // 课程详情页查询媒资播放地址
    ResponseResult resourceUrl(Long coursePubId, Long mediaId, Long teachplanId);

    // 免费课程新增选课，或者更新学习进度
    ResponseResult progress(LearningProgressDto dto);
}
